Audio

public interface Audio implements Observable<T>

Allows controlling audio for this Browser instance and receive notifications when audio has been started or stopped playing.

Functions

Link copied to clipboard
public abstract Browser browser()
Returns the Browser instance of this audio.
Link copied to clipboard
public abstract boolean isMuted()
Returns true when audio output is muted.
Link copied to clipboard
public abstract boolean isPlaying()
Returns true when the audio is currently playing on the loaded web page.
Link copied to clipboard
public abstract void mute()
Mutes all audio output.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public final Subscription subscribe<E extends Event>(Observer<E> observer)
public final Subscription subscribe<E extends Event>(Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
public abstract void unmute()
Unmutes all audio output.